package com.suifeng.mq.stock.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.suifeng.mq.common.to.OrderTo;
import com.suifeng.mq.common.to.StockLockedTo;
import com.suifeng.mq.common.vo.StockGoodsLockVo;
import com.suifeng.mq.stock.entity.StockEntity;

public interface StockService extends IService<StockEntity> {

    Boolean orderLockStock(StockGoodsLockVo lockVo);

    void unlockStock(StockLockedTo to);

    void unlockStock(OrderTo orderTo);
}
